/*
* berton
*/
package com.pitop.supplier.api;

import com.pitop.supplier.entity.Supplier;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.ArrayList;
import java.util.List;

/**
 * 供应商 api请求熔断器 熔断实现
 * @author berton
 */
@Component
public class SupplierFeignApiImpl implements SupplierFeignApi {
    /**
     * 查询Supplier一个详情信息
     * @param id 
     * @param code 编码
     * @return BeanRet
     */
    @Override
    public  Supplier load(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code){
        return new Supplier();
    }


    /**
     * 根据条件id查询Supplier一个详情信息
     *
     * @param id 
     * @return BeanRet
     */
    @Override
    public   Supplier loadById(@RequestParam("id") java.lang.Long id){
        return new Supplier();
    }

    /**
     * 根据条件code查询Supplier一个详情信息
     *
     * @param code 编码
     * @return BeanRet
     */
    @Override
    public   Supplier loadByCode(@RequestParam("code") java.lang.String code){
        return new Supplier();
    }


    /**
     * 查询Supplier信息集合
     *
     * @return 分页对象
     */
    @Override
    public    List<Supplier> list(@RequestBody Supplier supplier,int curPage,int pageSize){
        return new ArrayList();
    }


    /**
     * 查询Supplier信息集合
     *
     * @return 分页对象
     */
    @Override
    public   List<Supplier> listByPk(java.lang.Long id,java.lang.String code,int curPage,int pageSize){
        return new ArrayList();
    }


    @Override
    public Integer count(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code){
         return 0;
    }

    @Override
    public Integer count(@RequestBody Supplier supplier) {
        return 0;
    }
    /**
     * 创建Supplier
     *
     * @return BeanRet
     */
    @Override
    public   Supplier build(@RequestBody Supplier supplier){
        return new Supplier();
    }


    /**
     * 修改Supplier
     *
     * @return BeanRet
     */
    @Override
    public   Supplier modify(@RequestBody Supplier supplier){
        return new Supplier();
    }

    /**
     * 删除Supplier
     *
     * @return BeanRet
     */
    @Override
    public  void delete(@RequestParam("id") java.lang.Long id,@RequestParam("code") java.lang.String code){
        return;
    }
}
